<?php

namespace app\admin\controller;

use app\comm\func\CommFunc;
use think\Controller;
use think\Request;
use think\Session;

/**
 * Class Base 基础类
 * @package app\admin\controller
 */
class Base extends Controller
{
    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        $auth = Session::get('auth');
        if ($auth['role_id'] != 1 && $auth['role_id'] != 15) {
            CommFunc::ajaxReturn(['status' => 0, 'msg' => '您没有权限操作']);
        }
    }
}